/**
 * Copyright 2010 upTick Pty Ltd
 *
 * Licensed under the terms of the GNU General Public License version 3 
 * as published by the Free Software Foundation. You may obtain a copy of the
 * License at: http://www.gnu.org/copyleft/gpl.html
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations 
 * under the License.
 */

package au.com.uptick.serendipity.server.guice;

// import com.google.inject.Singleton;

import au.com.uptick.serendipity.server.handler.RetrieveAccountHandler;
import au.com.uptick.serendipity.server.handler.RetrieveAccountsHandler;
import au.com.uptick.serendipity.shared.action.RetrieveAccountAction;
import au.com.uptick.serendipity.shared.action.RetrieveAccountsAction;
import com.gwtplatform.dispatch.server.guice.HandlerModule;

//import com.gwtplatform.dispatch.shared.SecurityCookie;
// import org.apache.commons.logging.Log;
// import au.com.uptick.serendipity.client.NameTokens;

public class ServerModule extends HandlerModule {

    @Override
    protected void configureHandlers() {

        // Action to Action Handler
        bindHandler(RetrieveAccountsAction.class, RetrieveAccountsHandler.class);
        bindHandler(RetrieveAccountAction.class, RetrieveAccountHandler.class);

        // bind(Log.class).toProvider(LogProvider.class).in(Singleton.class);
    }
}
